package models

import (
	"time"
)

// MaCloseContainnerLog [...]
type MaCloseContainnerLog struct {
	ID           int       `gorm:"autoIncrement:true;primaryKey;column:id;type:int;not null" json:"id" json_old:"ID"`
	SalesID      string    `gorm:"column:sales_id;type:varchar(50);not null;comment:机器识别码" json:"sales_id" json_old:"SalesID"`
	ContainerNum int       `gorm:"column:container_num;type:int;not null;comment:货道号" json:"container_num" json_old:"ContainerNum"`
	AddTime      time.Time `gorm:"column:add_time;type:datetime;not null" json:"add_time" json_old:"AddTime"`
	CreatedAt    int64     `gorm:"column:created_at;autoCreateTime;type:int;size:64;comment:创建时间" json:"created_at"`
}

// TableName get sql table name.获取数据库表名
func (m MaCloseContainnerLog) TableName() string {
	return "ma_close_containner_log"
}

// 模式自动注册
func init() {
	Models = append(Models, &MaCloseContainnerLog{})
}
